package com.example.administrator.yuejian_15.model;


import com.example.administrator.yuejian_15.bean.JlbBean;
import com.example.administrator.yuejian_15.iface.JlbIface;
import com.example.administrator.yuejian_15.listener.ListListener;
import com.example.administrator.yuejian_15.service.AllService;

import java.util.List;

import retrofit2.Call;
import retrofit2.Retrofit;

public class JlbModel extends RetrofitBaseModel implements JlbIface<JlbBean> {

    private AllService allService;
    private Retrofit retrofit;
    public JlbModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }

    @Override
    public void getJlbInfo(ListListener<JlbBean> listListener) {
        Call<List<JlbBean>> call = allService.getJlbInfo();
        callenqueueList(call,listListener);

    }
}
